package collections

func MapToSlice(input map[string]interface{}) []interface{} {
	output := []interface{}{}
	for _, v := range input {
		output = append(output, v)
	}
	return output
}

func ContainsString(value string, list []string) bool {
	for _, v := range list {
		if v == value {
			return true
		}
	}
	return false
}

func ContainsInt(value int, list []int) bool {
	for _, v := range list {
		if v == value {
			return true
		}
	}
	return false
}
